#pragma once
#include "NXRasterBaseDef.h"
#include <vector>


LRESULT TPRaster_DrawOneCSpline(IN float* pfX,IN float* pfY,IN int nPtCount, std::vector<NXLine>& vLine);
bool TPRaster_Beizer3IsNearLine(NXPOINTF* pt0,NXPOINTF* pt1,NXPOINTF* pt2,NXPOINTF* pt3);
bool TPRaster_SplitBezier3(NXPOINTF* pOPoint,NXPOINTF* pSplit1,NXPOINTF* pSplit2);
LRESULT TPRaster_DrawCSpline(IN NXPOINTF* pt,std::vector<NXLine>& vLine);
LRESULT TPRaster_DrawOneQSpline(IN float* pfX,IN float* pfY,IN int nPtCount,std::vector<NXLine>& vLine);
LRESULT TPRaster_DrawQSpline(IN NXPOINTF pt1,IN NXPOINTF pt2,IN NXPOINTF pt3,int& nPtIndex,std::vector<NXLine>& vLine);